package com.yixq.soa.service.requestvo;

import java.io.Serializable;
import com.yixq.soa.service.web.annotation.DataValid;
import com.yixq.soa.service.web.em.RegexType;

import io.swagger.annotations.ApiModelProperty;

public class TbActivityUpdateVo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	
	@DataValid(description = "主键id", nullable = false)
	@ApiModelProperty(value = "是否开启)", required = true, dataType = "string")
	private Integer id;
	
	
	@DataValid(description = "是否开启", nullable = false)
	@ApiModelProperty(value = "是否开启)", required = true, dataType = "string")
	private Boolean enable;

	@DataValid(description = "活动名称", maxLength = 50, nullable = true, regexType = RegexType.NO_SPECIALCHAR)
	@ApiModelProperty(value = "活动名称", required = false, dataType = "string")
	private String name;
	
	@DataValid(description = "活动开始时间", maxLength = 50, nullable = false, regexType = RegexType.DATE_YYYY_MM_DD_HH_MM_SS)
	@ApiModelProperty(value = "活动开始时间(yyyy-MM-dd hh_mm_ss)", required = true, dataType = "string")
	private String startTime;
	
	
	@DataValid(description = "活动结束时间", maxLength = 50, nullable = false, regexType = RegexType.DATE_YYYY_MM_DD_HH_MM_SS)
	@ApiModelProperty(value = "活动结束时间(yyyy-MM-dd hh_mm_ss)", required = true, dataType = "string")
	private String endTime;
	
	
	@DataValid(description = "活动名称", nullable = false, min = 1, checkHandler = Integer.class)
	@ApiModelProperty(value = "活动名称", required = true, dataType = "string")
	private Integer rate;

	public Boolean getEnable() {
		return enable;
	}

	public void setEnable(Boolean enable) {
		this.enable = enable;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public Integer getRate() {
		return rate;
	}

	public void setRate(Integer rate) {
		this.rate = rate;
	}

}
